package com.hxs.hxsserver.config.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: Andi
 * @Description:
 * @Date: 2020/4/23 14:28
 */
@Data
@Component
@ConfigurationProperties(prefix = "redis")
public class RedisConfig {
    private Integer database;
    private String host;
    private int port;
    private int timeout;
    private String password;
    private int poolMaxTotal;
    private int poolMaxIdle;
    //秒
    private int poolMaxWait;
}
